//
// Copyright (c) 2009-2011, chunquedong
//
// This file is part of ChunMap project
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE(Version >=3)
//
// History:
//   2011-05-05  Jed Young  Creation
//

using fan3dTouch
using gfx

using chunmapModel

**
** BoxZoomIn
**
@Js
class BoxZoomIn : RectangleTool
{
  protected override Void finished()
  {
    newEnv := envelope.translate(view.screen2World)
    cmd := ExtentCommand(map, newEnv)
    map.executeCommand(cmd)
    map.renderMap
  }
}

